package com.liaozl.sca.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAILED(500, "失败"),
    SYSTEM_ERROR(501, "系统繁忙，请稍后再试"),
    PARAM_ERROR(502, "参数[%s]错误"),
    NOT_LOGIN(503, "用户未登录"),
    REQUEST_FAST(504, "请求被限流，请稍后再试"),
    REQUEST_ERROR(505, "请求被熔断，请稍后再试"),
    FEIGN_FALLBACK(506, "请求被feign熔断降级，请稍后再试"),
    ;

    private Integer code;
    private String message;

}
